<template>
  <div class="g-flex g-m-t-10">
    <img class="up-head-img" :src="values.poster" alt="" >
    <div class="g-m-l-10">
      <div class="up-name">罗翔六点半</div>
      <span>9.9 万粉丝</span>
      <span class="g-m-l-10">233 视频</span>
    </div>
    <van-button class="up-btn g-m-l-10" type="danger" @click="handleClick('follow')">+ 关注</van-button>
  </div>
</template>

<script>

export default {
  name: 'UpInfo',
  props: {
    values: {
      type: Object,
      default: function () {
        return {}
      }
    }
  },
  emits: ['success'],
  setup(props, ctx) {
    const handleClick = name => ctx.emit('success', {
      name
    })

    return {
      handleClick
    }
  }
}
</script>

<style lang="scss" scoped>
.g-flex {
  display: flex;
}
.g-tc {
  text-align: center;
}
.g-m-t-10 {
  margin-top: 10px;
}
.g-m-l-10 {
  margin-left: 10px;
}
.g-m-l-a {
  margin-left: auto;
}
.up-advert-img {
  width: 54px;
  height: 34px;
  border-radius: 2px;
}
.up-head-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.up-name {
  height: 20px;
  font-size: 14px;
}
.up-btn {
  height: 28px;
}
</style>